pkgname=plasma-mobile
pkgver=0_git20171108
pkgrel=0
_commit="df1eeb023083fbc300bae9076fe7e2dc75bd4baa"
pkgdesc="Plasma Mobile"
arch="all"
url="https://community.kde.org/Plasma/Mobile"
license="GPL-2.0"
depends="plasma-workspace solid solid-libs desktop-file-utils powerdevil polkit-kde-agent"
depends_dev=""
makedepends="extra-cmake-modules kdoctools-dev plasma-workspace-dev qt5-qtdeclarative-dev
			 kio-dev kdelibs4support-dev kwindowsystem-dev kwayland-dev karchive-dev sonnet-dev
			 knotifications-dev kiconthemes-dev plasma-framework-dev kpackage-dev kdeclarative-dev
			 kactivities-dev kcodecs-dev kcoreaddons-dev solid-dev kconfig-dev kauth-dev
			 kdbusaddons-dev ki18n-dev kservice-dev kcompletion-dev kbookmarks-dev kwidgetsaddons-dev
			 kitemviews-dev kjobwidgets-dev kxmlgui-dev kconfigwidgets-dev kcrash-dev kdesignerplugin 
			 kdesignerplugin-dev kemoticons-dev kguiaddons-dev kitemmodels-dev kinit-dev
			 kparts-dev ktextwidgets-dev kunitconversion-dev solid-dev solid-libs"
install="$pkgname.post-install
		 $pkgname.post-upgrade
		 $pkgname.post-deinstall"
source="$pkgname-$_commit.tar.gz::https://github.com/pmsourcedump/$pkgname/archive/$_commit.tar.gz"

builddir="$srcdir/$pkgname-$_commit"
prepare() {
	mkdir -p "$srcdir"/build
}

build() {
	cd "$srcdir"/build
	cmake "$srcdir/$pkgname-$_commit" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DLIB_INSTALL_DIR=lib \
		-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
		-DCMAKE_BUILD_TYPE=Release
	make
}

check() {
	cd "$srcdir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$srcdir"/build
	make DESTDIR="$pkgdir/" install
}
sha512sums="49e5e559b64a72e7d6128cf6ea05e189b3877c2c16adcb3e79defd0ed45b95374d3165539691f4ba79c61cd56a8527709c5eedb9fcf9e0f2a41e63ab57f37a2c  plasma-mobile-df1eeb023083fbc300bae9076fe7e2dc75bd4baa.tar.gz"
